package com.neusoft.neumooc.service.front;

import java.util.List;

import com.neusoft.core.common.exception.ServiceException;
import com.neusoft.neumooc.vo.ColumnsVO;
import com.neusoft.neumooc.vo.ContentVO;
import com.neusoft.neumooc.vo.MenuVO;
import com.neusoft.neumooc.vo.TemplatesVO;

/**
 * @ClassName: ContentService
 * @Description: TODO
 * @author HN
 * @date 2016年8月23日
 */
public interface ContentService {
	/**
	 * @Title: getColumnsvo
	 * @Description: 获取内容信息
	 * @return
	 * @throws ServiceException
	 */
	public List<ColumnsVO> getColumnsVo(String typeId) throws ServiceException;

	/**
	 * @Title: getTemplatesvo
	 * @Description: 获取模板信息
	 * @return
	 * @throws ServiceException
	 */
	public List<TemplatesVO> getTemplatesVo() throws ServiceException;

	/**
	 * @Title: getContentvo
	 * @Description: 获得内容
	 * @param columnsid
	 * @return
	 * @throws ServiceException
	 */
	public List<ContentVO> getContentVo(String columnsId, int pageIndex,
			int pageSize) throws ServiceException;

	/**
	 * @Title: getColumnidByColumnname
	 * @Description: 根据栏目名称获得栏目标识
	 * @param columnname
	 * @return
	 * @throws ServiceException
	 */
	public String getColumnIdByColumnName(String columnName)
			throws ServiceException;

	/**
	 * @Title: getTypeidByColumnid
	 * @Description: 根据栏目标识获取内容类型
	 * @param columnid
	 * @return
	 * @throws ServiceException
	 */
	public String getTypeIdByColumnId(String columnId) throws ServiceException;

	/**
	 * @Title: getListtplfileByColumnid
	 * @Description:根据栏目标识获取列表模板
	 * @param columnid
	 * @return
	 * @throws ServiceException
	 */
	public String getListTplFileByColumnId(String columnId)
			throws ServiceException;

	/**
	 * @Title: getPagetplfileByColumnid
	 * @Description: 根据栏目标识获取内容模板
	 * @param columnid
	 * @return
	 * @throws ServiceException
	 */
	public String getPageTplFileByColumnId(String columnId)
			throws ServiceException;

	/**
	 * @Title: getContentvoNum
	 * @Description:获得内容数量
	 * @param columnid
	 * @return
	 * @throws ServiceException
	 */
	public int getContentVoNum(String columnId) throws ServiceException;

	/**
	 * @Title: getContentDetail
	 * @Description: 获取详细信息
	 * @param contentid
	 *            内容编号
	 * @return
	 * @throws ServiceException
	 */
	public List<ContentVO> getContentDetail(String contentId)
			throws ServiceException;

	/**
	 * @Title: getSearchInfo
	 * @Description: 获取搜索数据
	 * @param search
	 * @return
	 * @throws ServiceException
	 */
	public List<ContentVO> getSearchInfo(String search, int pageIndex,
			int pageSize) throws ServiceException;

	/**
	 * @Title: getSearchInfoNum
	 * @Description: 获取搜索数据数量
	 * @param search
	 * @return
	 * @throws ServiceException
	 */
	public int getSearchInfoNum(String search) throws ServiceException;

	/**
	 * @Title: getListtplfileByTypeid
	 * @Description: 拿到列表模板
	 * @param typeid
	 * @return
	 * @throws ServiceException
	 */
	public String getListTplFileByTypeId(String typeId) throws ServiceException;

	/**
	 * @Title: getPagetplfileByTypeid
	 * @Description: 拿到页面模板
	 * @param typeid
	 * @return
	 * @throws ServiceException
	 */
	public String getPageTplFileByTypeId(String typeId) throws ServiceException;

	/**
	 * @Title: getColumnNameByColumnId
	 * @Description: 根据栏目标识查找栏目名称
	 * @param columnId
	 * @return
	 * @throws ServiceException
	 */
	public String getColumnNameByColumnId(String columnId)
			throws ServiceException;

	/**
	 * @Title: getMenuNameNameByColumnId
	 * @Description: 查询一级菜单名称
	 * @param columnId
	 * @return
	 * @throws ServiceException
	 */
	public MenuVO getMenuNameByColumnId(String columnId)
			throws ServiceException;

	public String getMenuNameUsByColumnId(String columnId)
			throws ServiceException;

	public String getTitleByContentId(String contentId) throws ServiceException;
	
	public String getColumnIdByContentId(String contentId) throws ServiceException;
}
